import Request from '@/axios/request'

export function getHousingsNums(params) {
  return Request.get('housings_nums', { params })
}

export function createHousingsNum() {
  return Request.get('housings_nums/create')
}

export function storeHousingsNum(data) {
  return Request.post('housings_nums', data)
}

export function updateHousingsNum(id, data) {
  return Request.put(`housings_nums/${id}`, data)
}

export function editHousingsNum(id) {
  return Request.get(`housings_nums/${id}/edit`)
}

export function destroyHousingsNum(id) {
  return Request.delete(`housings_nums/${id}`)
}
